package date;

import java.util.Date;

public class DateDemo {

    public static void main(String[] args) {

        Date date = new Date();
        System.out.println(date);

        long time = date.getTime();
        System.out.println(time);

        Date date1 = new Date(1566906348429L);
        System.out.println(date1);

        Date date2 = new Date();
        System.out.println(date2);

        date2.setTime(1566906348429L);
        System.out.println(date2);


    }
}
